﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="EmptyProjectNet40_FineUI.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
      <f:PageManager ID="PageManager1" runat="server" />
        <f:Grid ID="Grid1" Title="首诊病人信息列表" EnableCollapse="true" Width="1200" PageSize="5" ShowBorder="true" ShowHeader="true"
            AllowPaging="true" IsDatabasePaging="true" runat="server" EnableCheckBoxSelect="True" OnRowCommand="Grid1_RowCommand"
            DataKeyNames="Id,Name" OnPageIndexChange="Grid1_PageIndexChange">

              <Toolbars>
                <f:Toolbar runat="server" Position="Top">
                    <Items>
                        <f:Button ID="Button2" runat="server" Text="新增" OnClick="Button1_Click">
                        </f:Button>

                        <f:TextBox EmptyText="请输入身份证号码查询" runat="server"></f:TextBox><f:Button Text="查询" runat="server"></f:Button>
                    </Items>
                    <Items>
                         
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Columns>
                <f:RowNumberField Hidden="true" />
                 <f:BoundField Width="70px" DataField="ID" DataFormatString="{0}" HeaderText="编号" />
                <f:BoundField Width="100px" DataField="Name" DataFormatString="{0}" HeaderText="姓名" />
                <f:BoundField Width="100px" DataField="birthday" DataFormatString="{0}" HeaderText="出生年月日" />
                <f:TemplateField Width="50px" HeaderText="性别">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# GetGender(Eval("Gender")) %>'></asp:Label>
                    </ItemTemplate>
                </f:TemplateField>
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action1" Text="临床症状" HeaderText="临床症状" />
                 <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action2" Text="过去病史" HeaderText="过去病史" />
               
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action3" Text="个人生活史" HeaderText="个人生活史" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action4" Text="家族史" HeaderText="家族史" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action5" Text="体格检查" HeaderText="体格检查" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action6" Text="眼底及周围神经检查" HeaderText="眼底及周围神经检查" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action7" Text="实验室检查" HeaderText="实验室检查" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action8" Text="心电图" HeaderText="心电图" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action9" Text="影像学检查" HeaderText="影像学检查" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action10" Text="骨密度等其他检查" HeaderText="骨密度等其他检查" />
                <f:LinkButtonField Width="100px" TextAlign="Center" CommandName="Action11" Text="治疗情况" HeaderText="治疗情况" />
            </Columns>
          
        </f:Grid>
        <br />

         <f:Window ID="Window1" Title="基本信息" Hidden="true"  Target="Self" EnableResize="true" runat="server"
            IsModal="true" Width="600px" WindowPosition="Center">
            <Items>
                <f:Form ID="SimpleForm1" runat="server" ShowBorder="false" ShowHeader="false" LabelWidth="80px" BodyPadding="10px">
                    <Items>
                        
                        <f:HiddenField ID="hfFormID" runat="server"></f:HiddenField>
                        <f:TextBox ID="tbxFormUserName" ShowRedStar="true" Label="姓名" Required="true" runat="server">
                        </f:TextBox>
                        <f:RadioButtonList ID="rblFormGender" Label="性别" ShowRedStar="true" Required="true" runat="server">
                            <f:RadioItem Text="男" Value="1" />
                            <f:RadioItem Text="女" Value="0" />
                        </f:RadioButtonList>
                        <f:TextBox ID="TextBox1" ShowRedStar="true" Label="身份证" RegexPattern="IDENTITY_CARD" Required="true" runat="server">
                        </f:TextBox>
                         <f:TextBox ID="TextBox2" ShowRedStar="true" Label="曾住医院" Required="true" runat="server">
                        </f:TextBox>
                        <f:TextBox ID="TextBox3" ShowRedStar="true" Label="住址" Required="true" runat="server">
                        </f:TextBox>

                          <f:FormRow ColumnWidths="50% 50%">
                            <Items>

                         <f:TextBox ID="TextBox4" ShowRedStar="true" Label="邮编" RegexPattern="EMAIL" Required="true" runat="server">
                        </f:TextBox>
                         <f:TextBox ID="TextBox5" ShowRedStar="true" Label="电话" RegexPattern="NUMBER" Required="true" runat="server">
                        </f:TextBox>
                      
                                
                            </Items>
                        </f:FormRow>
                       
                        <f:FormRow ColumnWidths="50% 50%">
                            <Items>

                                  <f:DropDownList ID="ddlFormMajor" Label="职业" ShowRedStar="true" Required="true" AutoSelectFirstItem="false" runat="server">
                            <f:ListItem Text="学生" Value="学生" />
                            <f:ListItem Text="脑力劳动者 " Value="脑力劳动者 " />
                            <f:ListItem Text="体力劳动者 " Value="体力劳动者 " />
                            <f:ListItem Text="离退人员 " Value="离退人员 " />
                            <f:ListItem Text="家庭妇女 " Value="家庭妇女 " />
                            <f:ListItem Text="下岗无业 " Value="下岗无业 " />
                        </f:DropDownList>


                                  <f:DropDownList ID="DropDownList1" Label="文化程度" ShowRedStar="true" Required="true" AutoSelectFirstItem="false" runat="server">
                           
                            <f:ListItem Text="本科以上   " Value="本科以上   " />
                            <f:ListItem Text="大专  " Value="大专  " />
                            <f:ListItem Text="高中 " Value="高中 " />
                            <f:ListItem Text="初中 " Value="初中 " />
                            <f:ListItem Text="小学 " Value="小学 " />
                             <f:ListItem Text="文盲 " Value="文盲 " />
                        </f:DropDownList>

                     

                            </Items>
                        </f:FormRow>

                          <f:RadioButtonList ID="rbl1" runat="server">
                           <f:RadioItem Text="省医保" />
                           <f:RadioItem Text="地市医保" />
                           <f:RadioItem Text="城镇居民医保" />
                           <f:RadioItem Text="农保" />
                           <f:RadioItem Text="商业医保" />
                       </f:RadioButtonList>
                    </Items>
                    
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
                            <Items>
                                <f:Button ID="btnSave"
                                    Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1" >
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                </f:Form>
            </Items>
            
        </f:Window>



        <f:Window ID="Window2" Title="临床症状" Hidden="true"  Target="Self" EnableResize="true" runat="server"
            IsModal="true" Width="800px" WindowPosition="Center">
            <Items>
                <f:Form ID="Form2" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="10px">
                    <Items>
                        
                      <f:RadioButtonList ID="rbl3" runat="server" OnSelectedIndexChanged="rbl3_SelectedIndexChanged" AutoPostBack="true">
                          <f:RadioItem Text="已确诊" Value="已确诊" />
                           <f:RadioItem Text="未确诊" Value="未确诊" />
                      </f:RadioButtonList>
                   
                            <f:DatePicker ID="dp1" runat="server" Label="确诊日期" Width="300"></f:DatePicker>

                          
                            
                             <f:CheckBoxList ID="zz1" runat="server"  Label="由以下哪些症状被确诊为糖尿病(可多选)" LabelWidth="260"  ColumnNumber="3">
                                 <f:CheckItem Text="1．多饮多尿" />
                                 <f:CheckItem Text="2. 易饥、多食" />
                                 <f:CheckItem Text="3. 体重下降" />
                                 <f:CheckItem Text="4.乏力" />
                                 <f:CheckItem Text="5. 皮肤疖肿" />
                                 <f:CheckItem Text="6. 皮肤或外阴搔痒" />
                                 <f:CheckItem Text="7.肥胖" />
                             </f:CheckBoxList>

                            <f:RadioButtonList runat="server" Label="并发症">
                                <f:RadioItem Text="有" />
                                <f:RadioItem Text="无" />
                            </f:RadioButtonList>
                        
                        <f:FormRow ColumnWidth="10% 45% 45%" >
                            <Items>
                                  <f:CheckBox Text="1. 糖尿病酮症" runat="server"></f:CheckBox>
                        <f:TextBox Label="多少次" TextMode="Text" runat="server" ></f:TextBox>
                         <f:TextBox Label="第一次时间" TextMode="Text" runat="server" ></f:TextBox>
                            </Items>
                        </f:FormRow>  


                           <f:FormRow ColumnWidth="10% 90%">
                            <Items>
                                  <f:CheckBox Text="2. 糖尿病肾病" runat="server" ></f:CheckBox>
                       
                         <f:TextBox Label="确诊时间" TextMode="Text" runat="server" ></f:TextBox>
                            </Items>
                        </f:FormRow>  


                           <f:FormRow ColumnWidth="10% 90%">
                            <Items>
                                  <f:CheckBox Text="3. 糖尿病视网膜病"   runat="server"></f:CheckBox>
                      
                         <f:TextBox Label="确诊时间" TextMode="Text" runat="server" ></f:TextBox>
                            </Items>
                        </f:FormRow>  


                           <f:FormRow ColumnWidth="410% 90%">
                            <Items>
                                  <f:CheckBox Text="5. 糖尿病足" runat="server"></f:CheckBox>
                      
                         <f:TextBox Label="确诊时间" TextMode="Text" runat="server" ></f:TextBox>
                            </Items>
                        </f:FormRow> 
                      
                     
                   
                          
                      
                    </Items>
                    
                    <Toolbars>
                        <f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
                            <Items>
                                <f:Button ID="Button1"
                                    Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1" >
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                </f:Form>
            </Items>
            
        </f:Window>

        <f:Window ID="Window3" Title="过去病史" Hidden="true"  Target="Self" EnableResize="true" runat="server"
            IsModal="true" Width="600px" WindowPosition="Center">
            <Items>
                <f:Form ID="Form3" runat="server" ShowBorder="false" ShowHeader="false" LabelWidth="80px" BodyPadding="10px">
                    <Items>
                        
                     

                          <f:FormRow ColumnWidths="20% 80%">
                            <Items>

                      <f:CheckBox Text="1.冠心病" runat="server"></f:CheckBox>
                        <f:DatePicker Text="确诊日期：" Label="确诊日期：" runat="server"></f:DatePicker>
                      
                      
                                
                            </Items>
                        </f:FormRow>
                       
                        <f:FormRow ColumnWidths="15% 30% 55%">
                            <Items>

                      <f:CheckBox Text="2.心梗" runat="server"></f:CheckBox>
                      <f:TextBox runat="server" Label="次数："></f:TextBox>
                        <f:DatePicker  Label="首次发病日期：" ShowLabel="true" LabelWidth="90" runat="server"></f:DatePicker>
                      
                      
                                
                            </Items>
                        </f:FormRow>

                         <f:FormRow ColumnWidths="20% 80%">
                            <Items>

                      <f:CheckBox Text="3.肥胖" runat="server"></f:CheckBox>
                        <f:DatePicker Text="出现日期：" Label="出现日期：" runat="server"></f:DatePicker>
                      
                      
                                
                            </Items>
                        </f:FormRow>

                         <f:FormRow ColumnWidths="15% 30% 55%">
                            <Items>

                      <f:CheckBox Text="4.脑梗塞" runat="server"></f:CheckBox>
                                  <f:TextBox runat="server" Label="次数："></f:TextBox>
                        <f:DatePicker Text="首次发病日期：" Label="首次发病日期：" LabelWidth="90" runat="server"></f:DatePicker>
                      
                      
                                
                            </Items>
                        </f:FormRow>

                         <f:FormRow ColumnWidths="15% 35% 25% 25%">
                            <Items>

                      <f:CheckBox Text="5.高血压" runat="server"></f:CheckBox>
                        <f:DatePicker Text="确诊日期：" Label="确诊日期：" runat="server"></f:DatePicker>
                       <f:TextBox runat="server" Label="最高血压："></f:TextBox>
                      <f:TextBox runat="server" Label="平时血压："></f:TextBox>
                                
                            </Items>
                        </f:FormRow>


                         <f:FormRow ColumnWidths="20% 80%">
                            <Items>

                      <f:CheckBox Text="6.高血脂" runat="server"></f:CheckBox>
                        <f:DatePicker Text="发现日期：" Label="出现日期：" runat="server"></f:DatePicker>
                      
                      
                                
                            </Items>
                        </f:FormRow>


                         <f:FormRow >
                            <Items>

                    <f:CheckBoxList  runat="server" Label="7.既往病史: ">
                        <f:CheckItem Text="结核" />
                         <f:CheckItem Text="肝炎" />
                         <f:CheckItem Text="IGT" />
                         <f:CheckItem Text="IGT" />
                         <f:CheckItem Text="其他" />
                    </f:CheckBoxList>
                      
                      
                                
                            </Items>
                        </f:FormRow>
                    </Items>
                    
                    <Toolbars>
                        <f:Toolbar ID="Toolbar3" Position="Bottom" ToolbarAlign="Right" runat="server">
                            <Items>
                                <f:Button ID="Button4"
                                    Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1" >
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                </f:Form>
            </Items>
            
        </f:Window>


        <f:Window ID="Window4" Title="个人生活史" Hidden="true"  Target="Self" EnableResize="true" runat="server"
            IsModal="true" Width="800px" WindowPosition="Center">
            <Items>
                 <f:Form ID="Form4" MessageTarget="Qtip" Width="800px" BodyPadding="5px" Title="表单" runat="server" LabelWidth="50px">
            <Items>
                <f:Panel ID="Panel2" ShowHeader="false" CssClass="" ShowBorder="false" Layout="Column" runat="server" BodyPadding="5px">
                    <Items>
                       <f:CheckBox Text="1.吸烟史" runat="server"></f:CheckBox>
                        <f:TextBox ID="TextBox6" ShowLabel="true" Label="支/天" Required="true" Width="150px"  runat="server">
                        </f:TextBox>
                         <f:TextBox ID="TextBox61" ShowLabel="true" Label="已吸" EmptyText="年" Required="true" Width="150px"  runat="server">
                        </f:TextBox>
                       <f:TextBox ID="TextBox62" ShowLabel="true" Label="戒烟" EmptyText="年" Required="true" Width="150px" runat="server">
                        </f:TextBox>
                       
                    </Items>
                </f:Panel>
                <f:Panel ID="Panel1" ShowHeader="false" ShowBorder="false" Layout="Column" runat="server" BodyPadding="5px">
                    <Items>
                       <f:CheckBox Text="2.饮酒史" runat="server"></f:CheckBox>
                       <f:RadioButtonList runat="server" Width="600">
                           
                             <f:RadioItem Text="嗜酒(每天喝酒,有瘾)" />
                             <f:RadioItem Text="经常喝酒(每周3次以上)" />
                             <f:RadioItem Text="偶尔" />
                           <f:RadioItem Text="从不" />
                       </f:RadioButtonList>
                    </Items>
                </f:Panel>
                <f:Panel ID="Panel3" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server" BodyPadding="10px">
                    <Items>
                        <f:CheckBox Text="3.孕产史" runat="server"></f:CheckBox>

                        <f:Label runat="server" Text="   孕:" ></f:Label>
                        <f:TextBox ID="TextBox71" LabelWidth="25" ShowLabel="false" Label="孕"   Required="true" Width="50px" runat="server">
                        </f:TextBox>
                         <f:Label runat="server" Text=" 流产" ></f:Label>
                        <f:TextBox ID="TextBox72" ShowLabel="false" Label="流产" BoxFlex="1"  Required="true" Width="50px"  runat="server">
                        </f:TextBox>

                         <f:Label runat="server" Text="巨大胎儿分娩史" ></f:Label>
                        <f:TextBox ID="TextBox73" ShowLabel="false" Label="巨大胎儿分娩史"  Required="true" LabelWidth="150" Width="50px"  runat="server">
                        </f:TextBox>

                          <f:Label runat="server" Text="低体重儿分娩史" ></f:Label>
                        <f:TextBox ID="TextBox74" ShowLabel="false" Label="低体重儿分娩史"  Required="true" Width="50px"  runat="server">
                        </f:TextBox>

                         <f:Label runat="server" Text="异常分娩" ></f:Label>
                          <f:TextBox ID="TextBox75" ShowLabel="false" Label="异常分娩"  Required="true" Width="50px"  runat="server">
                        </f:TextBox>
                    </Items>
                </f:Panel>
              
                <f:Button ID="Button6" Text="保存数据" ValidateForms="Form1" ValidateMessageBox="true" OnClick="Button1_Click" runat="server">
                </f:Button>
            </Items>
        </f:Form>
            </Items>
            
        </f:Window>
        <f:Label ID="labResult" EncodeText="false" runat="server">
        </f:Label>
        <br />
        <br />
    </form>
  
</body>
</html>
